//
//  THJTitleInfoCell.m
//  THJXHW
//
//  Created by 河南德艺 on 2017/9/21.
//  Copyright © 2017年 河南德艺. All rights reserved.
//

#import "THJTitleInfoCell.h"

@implementation THJTitleInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)updateCellContentWith:(NSDictionary*)dic Type:(NSString*)type{
    NSLog(@"dic--%@--%@",dic,type);
    self.typeLab.text = [NSString stringWithFormat:@"%@",type];
    self.areaLab.text = dic[@"name"];
    self.priceLab.text = [NSString stringWithFormat:@"%ld",[dic[@"price"] integerValue]];
    NSLog(@"");
    float zd = [dic[@"change_p"] floatValue];
    self.zdLab.text = [NSString stringWithFormat:@"涨幅：%.2f %%",zd];
}
@end
